package com.imau.service.impl;

import com.imau.dao.BookDao;
import com.imau.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("bookService")
public class BookServiceImpl implements BookService {
    //调用dao层
    @Autowired
    private BookDao bookDao;


    public void save() {

        bookDao.addBook();
        System.out.println("book service save");
    }
}
